/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: #0a0a12;
    color: #00f3ff;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 赛博朋克网格背景 */
.cyber-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* 扫描线效果 */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 243, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* 主网格布局 */
.cyber-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    height: 100vh;
    gap: 0;
    position: relative;
    background: linear-gradient(135deg, #0a0a12 0%, #151522 100%);
}

/* 左侧播放器区域 */
.player-section {
    padding: 30px;
    border-right: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.player-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f3ff, transparent);
    z-index: 2;
}

/* 头部样式 */
.cyber-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.hologram-logo {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #00f3ff;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.hologram-line {
    position: absolute;
    width: 60px;
    height: 2px;
    background: #ff00ff;
    transform: rotate(45deg);
    opacity: 0.5;
}

.hologram-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.cyber-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(0, 243, 255, 0.5),
        0 0 20px rgba(0, 243, 255, 0.3);
}

.accent {
    color: #ff00ff;
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5555;
}

.status-dot.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 1.5s infinite;
}

.status-text {
    font-size: 0.9rem;
    color: #00ff88;
    letter-spacing: 1px;
}

/* 可视化区域 */
.visual-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hologram-disc {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
}

.disc-ring.outer {
    width: 100%;
    height: 100%;
    border-color: rgba(0, 243, 255, 0.3);
    animation: rotate 20s linear infinite;
}

.disc-ring.middle {
    width: 70%;
    height: 70%;
    border-color: rgba(255, 0, 255, 0.3);
    animation: rotate 15s linear infinite reverse;
}

.disc-ring.inner {
    width: 40%;
    height: 40%;
    border-color: rgba(0, 255, 136, 0.3);
    animation: rotate 10s linear infinite;
}

.disc-center {
    width: 80px;
    height: 80px;
    background: #151522;
    border-radius: 50%;
    border: 2px solid #00f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.data-stream {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.data-bit {
    width: 20px;
    height: 2px;
    background: #00f3ff;
    animation: dataFlow 1s infinite;
}

.data-bit:nth-child(2) { animation-delay: 0.2s; }
.data-bit:nth-child(3) { animation-delay: 0.4s; }

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.disc-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.visualizer-container {
    width: 100%;
    max-width: 600px;
}

.waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.wave-bar {
    width: 8px;
    background: linear-gradient(to top, #00f3ff, #ff00ff);
    border-radius: 4px 4px 0 0;
    animation: wave 1.5s ease-in-out infinite;
    opacity: 0.7;
}

.wave-bar:nth-child(odd) { animation-delay: 0.2s; }
.wave-bar:nth-child(even) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

/* 歌曲信息 */
.track-info {
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    align-items: center;
}

.info-label {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-value {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

#song-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00f3ff;
}

/* 控制区域 */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-display span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #00ff88;
    min-width: 40px;
}

.time-track {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.time-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.time-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #ff00ff);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    pointer-events: none;
    transition: left 0.1s linear;
}

.time-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cyber-btn {
    position: relative;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
}

.cyber-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: #00f3ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
}

.cyber-btn:active {
    transform: translateY(0);
}

.cyber-btn.small {
    padding: 10px;
    font-size: 1rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cyber-btn:hover .btn-glow {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00f3ff, #ff00ff);
    border: none;
    color: #fff;
}

.play-btn:hover {
    background: linear-gradient(135deg, #00ffff, #ff33ff);
}

.btn-icon {
    position: relative;
    z-index: 1;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-icon {
    color: #00f3ff;
    font-size: 1.2rem;
}

.volume-control {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.volume-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00f3ff);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.volume-thumb {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
    pointer-events: none;
    transition: left 0.1s linear;
}

.volume-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* 右侧播放列表 */
.playlist-section {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.playlist-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}

.track-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #ff00ff;
    line-height: 1;
}

.count-label {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1px;
}

.playlist-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 30px;
}

.playlist-container::-webkit-scrollbar {
    width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00f3ff, #ff00ff);
    border-radius: 3px;
}

/* 播放列表项 */
.playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playlist-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.playlist-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
}

.track-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #888;
    min-width: 30px;
}

.playlist-item.active .track-number {
    color: #00f3ff;
}

.track-info-small {
    flex-grow: 1;
    min-width: 0;
}

.track-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artist {
    font-size: 0.9rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-duration {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #888;
    min-width: 50px;
    text-align: right;
}

.playlist-item.active .track-duration {
    color: #ff00ff;
}

.playlist-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

#mode-text {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

.playlist-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-line .label {
    font-size: 0.8rem;
    color: #888;
}

.info-line .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cyber-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .hologram-disc {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .cyber-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .player-section {
        border-right: none;
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    }
    
    .hologram-disc {
        width: 200px;
        height: 200px;
    }
    
    .cyber-title {
        font-size: 2rem;
    }
    
    .controls-section {
        gap: 20px;
    }
}